package edu.arizona.sista.learn.model.motion;

import edu.arizona.sista.learn.model.Interval;
import edu.arizona.sista.learn.model.displaying.Event;
import edu.arizona.sista.learn.model.holding.Person;

public class Decelerating extends Event{
	public Person _doer;

	public Decelerating(Interval time) {
		super(time);
	}
	
	public Decelerating(Person doer, Interval time) {
		this(time);
		_doer = doer;
	}

	@Override
	public String toString() {
		String time = "t_" + _time.start() + "-" + _time.end();
		String s1 = "isa(" + getVariableName() + ", Decelerating)\n";
		String s2 = "temporalExtent(" + getVariableName() + ", " + time + ")\n";
		String s3 = "performedBy(" + getVariableName() + ", " + _doer.getVariableName() + ")\n";
		return s1 + s2 + s3;
	}
	
}
